package com.frank.oj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.discussion.Discussion;
import com.frank.oj.common.result.CommonResult;

/**
 * @author frank
 * @Date 2024/5/4
 */
public interface GroupDiscussionService {
    CommonResult<IPage<Discussion>> getDiscussionList(Integer limit, Integer currentPage, Long gid, String pid);

    CommonResult<IPage<Discussion>> getAdminDiscussionList(Integer limit, Integer currentPage, Long gid);

    CommonResult<Void> addDiscussion(Discussion discussion);

    CommonResult<Void> updateDiscussion(Discussion discussion);

    CommonResult<Void> deleteDiscussion(Long did);
}
